package org.lisen.patterndemo.chain.v02;

import org.lisen.patterndemo.chain.Message;

public class Main {

    public static void main(String[] args) {
        Message msg = new Message();
        msg.setContent("hello, <abc>, 波多野结衣， 哈哈哈");

        FilterChain fc = FilterChain.getInstance();
        fc.add(new ChackSyntaxFilter())
                .add(new WordFilter())
                .dofilters(msg);

        System.out.println(msg.getContent());
    }

}
